package com.wchat.bean.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (FriendMsgs)实体类
 *
 * @author makejava
 * @since 2021-08-27 09:38:00
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FriendMsgs implements Serializable {
    private static final long serialVersionUID = -15164418849988759L;

    @TableId(type = IdType.INPUT)
    /**
     * 消息id
     */
    private Long msgId;
    /**
     * 谁发的
     */
    private Integer fromUser;
    /**
     * 发给谁
     */
    private Integer toUser;
    /**
     * 消息类型 TEXT  IMAGE  VIDEO FILE CARD
     */
    private String type;
    /**
     * 消息内容
     */
    private String content;
    /**
     * 是否已读
     */
    private Boolean readed;
    /**
     * 是否被撤回
     */
    private Boolean recall;
    /**
     * 是否被客户端成功接收
     */
    private Boolean isSend;
    /**
     * 发送时间
     */
    private Date created;
    /**
     * 修改时间
     */
    private Date updated;

}
